package com.yuyou.train.user.vo.req;

import org.apache.commons.lang3.StringUtils;

import com.yuyou.train.util.bean.ResBoolSimpleInfo;


public class ReqBehaviorThought {

	private String title;
	
	private String learnContent;
	
	private String thinkContent;
	
	private String planContent;

	
	public static ResBoolSimpleInfo<String> validate(ReqBehaviorThought req){
		ResBoolSimpleInfo<String> res=new ResBoolSimpleInfo<String>();
		if(req==null){
			res.setSuccess(false);
			res.setMessage("thought不能为空");
			return res;
		}else if(StringUtils.isEmpty(req.getTitle())){
			res.setSuccess(false);
			res.setMessage("题目不能为空");
			return res;
		}else if(StringUtils.isEmpty(req.getLearnContent())){
			res.setSuccess(false);
			res.setMessage("今日所学不能为空");
			return res;
		}else if(StringUtils.isEmpty(req.getPlanContent())){
			res.setSuccess(false);
			res.setMessage("落地计划不能为空");
			return res;
		}else if(StringUtils.isEmpty(req.getThinkContent())){
			res.setSuccess(false);
			res.setMessage("今日所思不能为空");
			return res;
		}		
		return ResBoolSimpleInfo.getSuccessInfo();
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLearnContent() {
		return learnContent;
	}

	public void setLearnContent(String learnContent) {
		this.learnContent = learnContent;
	}

	public String getThinkContent() {
		return thinkContent;
	}

	public void setThinkContent(String thinkContent) {
		this.thinkContent = thinkContent;
	}

	public String getPlanContent() {
		return planContent;
	}

	public void setPlanContent(String planContent) {
		this.planContent = planContent;
	}
	

	

}
